package com.beasts.antpage.sh;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * sh 启动类，需先对 core 项目进行 package
 *
 * @author Locker
 * @date 17/07/2018 11:30 AM
 * @since 1.0
 */
@SpringBootApplication
@ComponentScan(basePackages ={"com.beasts.antpage.core", "com.beasts.antpage.sh", "com.crux.cloud.app"})
@MapperScan(basePackages ={"com.beasts.antpage.sh.mapper","com.beasts.antpage.core.dao"})
@EnableTransactionManagement
@EnableDiscoveryClient
public class AntPageShoracleApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(AntPageShoracleApplication.class);
    }

    public static void main(String[] args) {

        SpringApplication.run(AntPageShoracleApplication.class, args);
    }

}
